//
//  TNTranslateHeadView.m
//  TravelNotes
//
//  Created by 黄锋 on 15/8/23.
//  Copyright (c) 2015年 王浩宇. All rights reserved.
//

#import "TNTranslateHeadView.h"

@implementation TNTranslateHeadView


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _button0 = [UIButton buttonWithType:UIButtonTypeSystem];
        _button0.frame = CGRectMake(0, 0, frame.size.width / 2 - 25, 40);
        [_button0 setTitle:@"自动检测" forState:UIControlStateNormal];
        [self addSubview:_button0];
        UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width / 2 - 25, 0, 50, 40)];
        lable.text = @"<-->";
        lable.textAlignment = NSTextAlignmentCenter;
        [self addSubview:lable];
        _button1 = [UIButton buttonWithType:UIButtonTypeSystem];
        _button1.frame = CGRectMake(frame.size.width / 2 + 25, 0, frame.size.width / 2 - 25, 40);
        [self addSubview:_button1];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
